// [[ OnflowGenerator File UUID: 1801d9df256b40898d7d27372182fe66  ]]
package com.itdct.onflow.system.account.mapper;

import com.itdct.onflow.core.mapper.BaseMapper;
import com.itdct.onflow.core.vo.KeyLabelValueVo;
import com.itdct.onflow.system.account.entity.SysAccountEntity;
import com.itdct.onflow.system.account.qo.SysAccountSearchQo;
import com.itdct.onflow.system.account.vo.SysAccountDetailVo;
import com.itdct.onflow.system.account.vo.SysAccountListVo;
import com.itdct.onflow.system.account.vo.SysAccountMyInfoVo;

import org.apache.ibatis.annotations.Mapper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * @author DCTANT
 * @date 2025-09-01 15:11:24
 * @version 1.0
 * @description 系统账户查询工具
 */
@Mapper
public interface SysAccountMapper extends BaseMapper<SysAccountEntity> {
    @Nullable
    SysAccountDetailVo findById(Long id);

    @Nullable
    SysAccountMyInfoVo findMyInfo(Long id);

    @NotNull
    List<SysAccountListVo> findByList(SysAccountSearchQo qo);

// [[ OnflowGenerator Range (- selectFunctions -) Start ]]
    @NotNull
    List<KeyLabelValueVo> selectNameList(SysAccountSearchQo qo);

    @Nullable SysAccountEntity findByNameOrMobile(@NotNull String name);

// [[ OnflowGenerator Range (- selectFunctions -) End ]]

}
